1 using System.Collections;
2 using
System.Collections.Generic;
3 using
UnityEngine;
4 using
UnityEngine.SceneManagement;
5
6 public
class ButtonManager : MonoBehaviour {
7
8     
public void LoadScene(string sceneName) {
9         SceneManager.LoadScene(sceneName);
10     }
11
12     
public void Quit() {
13         Application.Quit();
14     }
15
16     
public void ReloadScene() {
17         
18         SceneManager.LoadScene(SceneManager.GetActiveScene().name);
19     }
20 }


Gõ tìm kiếm nhanh...